import BaseModel from "./BaseModel";

export default class MainModel extends BaseModel {
    constructor() {
        super();
        this.attributes = ["pages", "css", "style", "commons", "model"];
        this.attributes.forEach(item=>{
            this.attributeValues[item] = [];
        })
    }

    addPage(page) {
        this.getAttribute("pages").push(page);
    }

    getPages() {
        return this.getAttribute('pages');
    }

    addModule(model) {
        this.getAttribute("model").push(model);
    }
}